Skip to content

Hometask/5#30

Open
shtbik wants to merge 2 commits intoromabelka:masterfrom
shtbik:hometask/5
Open

Hometask/5#30
shtbik wants to merge 2 commits intoromabelka:masterfrom
shtbik:hometask/5

Conversation

@shtbik
Copy link

@shtbik shtbik commented Jun 4, 2018

No description provided.

yield all([takeEvery(SIGN_UP_REQUEST, signUpSaga), signInSaga()])
const createAuthChanel = () =>
eventChannel((emit) => {
const callback = (user) => emit({ user })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь уже незачем в коллбек выносить

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Согласен


while (true) {
const { user } = yield take(chanel)
if (!user) return
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если нет user - SIGN_OUT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments